/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author Lorenzo
 */
@Entity
public class Cliente extends Persona {
    private static final long serialVersionUID = 1L;
    private String via;
    @ManyToOne
    private Comune comune;
    @OneToMany(mappedBy="Cliente")
    private List<Ordine> ordini;

    /**
     * Get the value of ordini
     *
     * @return the value of ordini
     */
    public List<Ordine> getOrdini() {
        return ordini;
    }

    /**
     * Set the value of ordini
     *
     * @param ordini new value of ordini
     */
    public void setOrdini(List<Ordine> ordini) {
        this.ordini = ordini;
    }


    public Comune getComune() {
        return comune;
    }

    public void setComune(Comune comune) {
        this.comune = comune;
    }
    private String cap;

    /**
     * Get the value of cap
     *
     * @return the value of cap
     */
    public String getCap() {
        return cap;
    }

    /**
     * Set the value of cap
     *
     * @param cap new value of cap
     */
    public void setCap(String cap) {
        this.cap = cap;
    }

    /**
     * Get the value of via
     *
     * @return the value of via
     */
    public String getVia() {
        return via;
    }

    /**
     * Set the value of via
     *
     * @param via new value of via
     */
    public void setVia(String via) {
        this.via = via;
    }

    
}
